import { createApp } from 'vue'

import App from './App.vue'
import pinia from './stores'
import router from './router'
import Vconsole from 'vconsole'

// 解决vant函数组件引入，无法解析样式，导致样式混乱
import 'vant/es/toast/style'
import 'vant/es/dialog/style'
import 'vant/es/notify/style'
import 'vant/es/image-preview/style'

// rem适配
import 'amfe-flexible'
// 自定义样式
import '@/styles/index.scss'

if (import.meta.env.MODE !== 'production') {
  // 测试和开发打开，生产不能打开
  new Vconsole()
}

const app = createApp(App)

app.use(pinia)
app.use(router)
app.mount('#app')
